package com.czy.owner.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.czy.owner.R;
import com.easyrecycleview.adapter.BaseViewHolder;
import com.easyrecycleview.adapter.RecyclerArrayAdapter;

/**
 * Created by Raven on 2018/1/8.
 */

public class WheelTagAdapter extends RecyclerArrayAdapter<String> {

    private Context mContext;

    public WheelTagAdapter(Context context) {
        super(context);
        this.mContext = context;
    }

    @Override
    public BaseViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) {
        return new WheelTagViewHolder(parent);
    }

    class WheelTagViewHolder extends BaseViewHolder<String>{

        private TextView itemTvTag;

        public WheelTagViewHolder(ViewGroup parent) {
            super(parent, R.layout.item_wheel_tag);
            itemTvTag = $(R.id.item_tv_tag_name);
        }

        @Override
        protected int getDataPosition() {
            return super.getDataPosition();
        }

        @Override
        public void setData(final String data) {
            super.setData(data);
        }
    }
}
